package com.atde._04_structural_design_patterns.adapter.interfaceadapter;


/**
 * @BelongsProject: hsp_java_design_mode
 * @BelongsPackage: com.atde._04_structural_design_patterns.adapter.interfaceadapter
 * @Author: Del
 * @CreateTime: 2025-06-19  00:00
 * @Description: 适配器模式 --- 接口适配器 --- 客户端测试类
 * @Version: 1.0
 */
public class Client {
    public static void main(String[] args) {
        AbsAdapter absAdapter = new AbsAdapter(){
            // 只需要覆盖我们需要使用的接口方法
            @Override
            public void m1() {
                System.out.println("使用了m1方法");
            }
        };

        absAdapter.m1();
    }
}
